// 
//  MyClass.cs
//  
//  Author:
//       BOUTRY Arnaud <lordphoenix@tuxfamily.org>
// 
//  Copyright (c) 2010 BOUTRY Arnaud as LordPhoenix <lordphoenix@tuxfamily.org>
// 
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
// 
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// 

using System;
using System.Collections;
using  Gtk;

namespace swmt.swmtProvider
{
	[AttributeUsage (AttributeTargets.All)]
	public class PluginInfoAttribute : System.Attribute{
		private string _service_name;
		private string _classname;
		public PluginInfoAttribute(string servicename,string classname){
			_service_name = servicename;
			_classname = classname;
		}
		public string ServiceName{
			get{return _service_name;}
		}
		public string ClassName{
			get{return _classname;}
		}
	}
	public abstract class WebService
	{
		public WebService (){	}
		abstract public string pluginfile{get;}
		abstract public string servicename{get;}
		abstract public int LastCount{get;}
		abstract public void saveconfig(string filename);
		abstract public void loadconfig(string filename);
		abstract public void deleteconfigfile();
		abstract public bool connect();
		abstract public int GetUnreadCount();
		abstract public string Homepage{get;}
		abstract public ResponseType Prompt(bool edit);
	}
}
